//Controller που αναζητα ενα καταστημα.
package Controllers;

import DAO.FindStore_Dao;
import Exceptions.DaoException;

public class FindStore_Controller {

    FindStore_Controller() {
    }

    public FindStore_Controller(FindStore_Dao findstore_Dao) {
    }

    public boolean validateFindStore(String StoreName)throws IllegalArgumentException, DaoException{
        boolean x;
        try{
            if (StoreName.isEmpty()) {
                x = false;
            } else {
                DAO.FindStore_Dao y = new DAO.FindStore_Dao();
                y.findStore(StoreName);
                x = true;
            }
        }catch (IllegalArgumentException e) {
            throw new IllegalArgumentException("Error in Foun Store");
        }
        return x;
        }

    public String validateFindStore() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    }